// 引入
import request from '@/utils/request'


/* 定义api接口函数 */
// 获取品牌分页列表数据
export const getTrademarkPageListApi = (page, limit) => {
  return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
}

// 根据id查找Trademark
export const getTrademarkByIdApi = (id) => {
  return request.get(`/admin/product/baseTrademark/get/${id}`)
}

// 获取所有品牌列表数据
export const getAllTrademarkListApi = () => {
  return request.get(`/admin/product/baseTrademark/getTrademarkList`)
}

// 新增品牌列表数据
export const saveTrademarkApi = (trademark) => {
  return request.post(`/admin/product/baseTrademark/save`, trademark)
}


// 修改品牌列表数据
export const updateTrademarkApi = (trademark) => {
  return request.put(`/admin/product/baseTrademark/update`, trademark)
}


// 删除品牌
export const deleteTrademarkApi = (id) => {
  return request.delete(`/admin/product/baseTrademark/remove/${id}`)
}


